package com.weipai.springboot.module.dao;

import com.weipai.springboot.model.IntegralGoods;
import com.weipai.springboot.model.SpecialGoods;

import java.util.List;
import java.util.Map;

public interface SpecialGoodsDao {

    int insertSpecialGoods(SpecialGoods specialGoods);

    int updateSpecialGoods(SpecialGoods specialGoods);

    int deleteSpecialGoods(Integer id);

    int batchDeleteSpecialGoods(Integer[] ids);

    List<Map<String, Object>> listSpecialGoods(String specialOfferId, Integer page, Integer size);

    int specialGoodsCount(String specialOfferId);

    //通过会场id和商品id确定该商品是否添加入了会场
    IntegralGoods selectByGoodsId(String goodsId, String specialOfferId);

    //通过会场id和商品id查询会场
    SpecialGoods selectByGoodsIdAndspecialId(String goodsId, String specialOfferId);
}
